package com.cloudsigns.factorymanager2.engineering.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class EngineeringUseAddActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private EditText edt_project_name, edt_maintenance_types;
    private ImageView img_project_name_select, img_engineering_name_select, img_use_information;
    private TextView btn_submit;
    private ListView lv;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_engineering_use_add);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        edt_project_name = findViewById(R.id.edt_project_name);
        edt_maintenance_types = findViewById(R.id.edt_maintenance_types);
        img_project_name_select = findViewById(R.id.img_project_name_select);
        img_engineering_name_select = findViewById(R.id.img_engineering_name_select);
        img_use_information = findViewById(R.id.img_use_information);
        btn_submit = findViewById(R.id.btn_submit);
        lv = findViewById(R.id.lv);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText("工程领用");
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        img_project_name_select.setOnClickListener(this);
        img_engineering_name_select.setOnClickListener(this);
        img_use_information.setOnClickListener(this);
        btn_submit.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View v) {
        switch (v.getId()) {
            case R.id.rl_back:
                finish();
                break;
            // 项目名称
            case R.id.img_project_name_select:
                break;
            // 工程名称
            case R.id.img_engineering_name_select:
                break;
            // 领用信息
            case R.id.img_use_information:
                break;
            // 提交
            case R.id.btn_submit:
                break;
        }
    }
}
